Optimal. Leaf size=77 \[ \frac {a^4 c^4 \tan ^7(e+f x)}{7 f}+\frac {3 a^4 c^4 \tan ^5(e+f x)}{5 f}+\frac {a^4 c^4 \tan ^3(e+f x)}{f}+\frac {a^4 c^4 \tan (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {3522, 3767} \[ \frac {a^4 c^4 \tan ^7(e+f x)}{7 f}+\frac {3 a^4 c^4 \tan ^5(e+f x)}{5 f}+\frac {a^4 c^4 \tan ^3(e+f x)}{f}+\frac {a^4 c^4 \tan (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3522
Rule 3767
Rubi steps
\begin {align*} \int (a+i a \tan (e+f x))^4 (c-i c \tan (e+f x))^4 \, dx &=\left (a^4 c^4\right ) \int \sec ^8(e+f x) \, dx\\ &=-\frac {\left (a^4 c^4\right ) \operatorname {Subst}\left (\int \left (1+3 x^2+3 x^4+x^6\right ) \, dx,x,-\tan (e+f x)\right )}{f}\\ &=\frac {a^4 c^4 \tan (e+f x)}{f}+\frac {a^4 c^4 \tan ^3(e+f x)}{f}+\frac {3 a^4 c^4 \tan ^5(e+f x)}{5 f}+\frac {a^4 c^4 \tan ^7(e+f x)}{7 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.24, size = 49, normalized size = 0.64 \[ \frac {a^4 c^4 \left (\frac {1}{7} \tan ^7(e+f x)+\frac {3}{5} \tan ^5(e+f x)+\tan ^3(e+f x)+\tan (e+f x)\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.41, size = 149, normalized size = 1.94 \[ \frac {1120 i \, a^{4} c^{4} e^{\left (6 i \, f x + 6 i \, e\right )} + 672 i \, a^{4} c^{4} e^{\left (4 i \, f x + 4 i \, e\right )} + 224 i \, a^{4} c^{4} e^{\left (2 i \, f x + 2 i \, e\right )} + 32 i \, a^{4} c^{4}}{35 \, {\left (f e^{\left (14 i \, f x + 14 i \, e\right )} + 7 \, f e^{\left (12 i \, f x + 12 i \, e\right )} + 21 \, f e^{\left (10 i \, f x + 10 i \, e\right )} + 35 \, f e^{\left (8 i \, f x + 8 i \, e\right )} + 35 \, f e^{\left (6 i \, f x + 6 i \, e\right )} + 21 \, f e^{\left (4 i \, f x + 4 i \, e\right )} + 7 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 25.03, size = 650, normalized size = 8.44 \[ -\frac {35 \, a^{4} c^{4} \tan \left (f x\right )^{7} \tan \relax (e)^{6} + 35 \, a^{4} c^{4} \tan \left (f x\right )^{6} \tan \relax (e)^{7} + 35 \, a^{4} c^{4} \tan \left (f x\right )^{7} \tan \relax (e)^{4} - 105 \, a^{4} c^{4} \tan \left (f x\right )^{6} \tan \relax (e)^{5} - 105 \, a^{4} c^{4} \tan \left (f x\right )^{5} \tan \relax (e)^{6} + 35 \, a^{4} c^{4} \tan \left (f x\right )^{4} \tan \relax (e)^{7} + 21 \, a^{4} c^{4} \tan \left (f x\right )^{7} \tan \relax (e)^{2} - 35 \, a^{4} c^{4} \tan \left (f x\right )^{6} \tan \relax (e)^{3} + 315 \, a^{4} c^{4} \tan \left (f x\right )^{5} \tan \relax (e)^{4} + 315 \, a^{4} c^{4} \tan \left (f x\right )^{4} \tan \relax (e)^{5} - 35 \, a^{4} c^{4} \tan \left (f x\right )^{3} \tan \relax (e)^{6} + 21 \, a^{4} c^{4} \tan \left (f x\right )^{2} \tan \relax (e)^{7} + 5 \, a^{4} c^{4} \tan \left (f x\right )^{7} - 7 \, a^{4} c^{4} \tan \left (f x\right )^{6} \tan \relax (e) + 105 \, a^{4} c^{4} \tan \left (f x\right )^{5} \tan \relax (e)^{2} - 315 \, a^{4} c^{4} \tan \left (f x\right )^{4} \tan \relax (e)^{3} - 315 \, a^{4} c^{4} \tan \left (f x\right )^{3} \tan \relax (e)^{4} + 105 \, a^{4} c^{4} \tan \left (f x\right )^{2} \tan \relax (e)^{5} - 7 \, a^{4} c^{4} \tan \left (f x\right ) \tan \relax (e)^{6} + 5 \, a^{4} c^{4} \tan \relax (e)^{7} + 21 \, a^{4} c^{4} \tan \left (f x\right )^{5} - 35 \, a^{4} c^{4} \tan \left (f x\right )^{4} \tan \relax (e) + 315 \, a^{4} c^{4} \tan \left (f x\right )^{3} \tan \relax (e)^{2} + 315 \, a^{4} c^{4} \tan \left (f x\right )^{2} \tan \relax (e)^{3} - 35 \, a^{4} c^{4} \tan \left (f x\right ) \tan \relax (e)^{4} + 21 \, a^{4} c^{4} \tan \relax (e)^{5} + 35 \, a^{4} c^{4} \tan \left (f x\right )^{3} - 105 \, a^{4} c^{4} \tan \left (f x\right )^{2} \tan \relax (e) - 105 \, a^{4} c^{4} \tan \left (f x\right ) \tan \relax (e)^{2} + 35 \, a^{4} c^{4} \tan \relax (e)^{3} + 35 \, a^{4} c^{4} \tan \left (f x\right ) + 35 \, a^{4} c^{4} \tan \relax (e)}{35 \, {\left (f \tan \left (f x\right )^{7} \tan \relax (e)^{7} - 7 \, f \tan \left (f x\right )^{6} \tan \relax (e)^{6} + 21 \, f \tan \left (f x\right )^{5} \tan \relax (e)^{5} - 35 \, f \tan \left (f x\right )^{4} \tan \relax (e)^{4} + 35 \, f \tan \left (f x\right )^{3} \tan \relax (e)^{3} - 21 \, f \tan \left (f x\right )^{2} \tan \relax (e)^{2} + 7 \, f \tan \left (f x\right ) \tan \relax (e) - f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 46, normalized size = 0.60 \[ \frac {a^{4} c^{4} \left (\frac {\left (\tan ^{7}\left (f x +e \right )\right )}{7}+\frac {3 \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\tan ^{3}\left (f x +e \right )+\tan \left (f x +e \right )\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 68, normalized size = 0.88 \[ \frac {5 \, a^{4} c^{4} \tan \left (f x + e\right )^{7} + 21 \, a^{4} c^{4} \tan \left (f x + e\right )^{5} + 35 \, a^{4} c^{4} \tan \left (f x + e\right )^{3} + 35 \, a^{4} c^{4} \tan \left (f x + e\right )}{35 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.58, size = 82, normalized size = 1.06 \[ \frac {a^4\,c^4\,\sin \left (e+f\,x\right )\,\left (35\,{\cos \left (e+f\,x\right )}^6+35\,{\cos \left (e+f\,x\right )}^4\,{\sin \left (e+f\,x\right )}^2+21\,{\cos \left (e+f\,x\right )}^2\,{\sin \left (e+f\,x\right )}^4+5\,{\sin \left (e+f\,x\right )}^6\right )}{35\,f\,{\cos \left (e+f\,x\right )}^7} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 0.75, size = 219, normalized size = 2.84 \[ \frac {1120 i a^{4} c^{4} e^{6 i e} e^{6 i f x} + 672 i a^{4} c^{4} e^{4 i e} e^{4 i f x} + 224 i a^{4} c^{4} e^{2 i e} e^{2 i f x} + 32 i a^{4} c^{4}}{35 f e^{14 i e} e^{14 i f x} + 245 f e^{12 i e} e^{12 i f x} + 735 f e^{10 i e} e^{10 i f x} + 1225 f e^{8 i e} e^{8 i f x} + 1225 f e^{6 i e} e^{6 i f x} + 735 f e^{4 i e} e^{4 i f x} + 245 f e^{2 i e} e^{2 i f x} + 35 f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________